import App from './App'
// 引入全局uView
import uView from 'uview-ui';
Vue.use(uView);


import store from '@/store'
Vue.prototype.$store = store


Vue.prototype.$VUE_SYSTEM_APPID = '1681607441192831436';
Vue.prototype.$VUE_SYSTEM_ID = 1;
Vue.prototype.$VUE_SYSTEM_APPSECRET = 'c26844d0979e75f0f8df6839c12e44b6';




// if(process.env.NODE_ENV == 'development') {
	// Vue.prototype.$httpUri = 'http://0.0.0.0:10001/';
	// Vue.prototype.$httpUserUri = 'http://0.0.0.0:10004/';
	// Vue.prototype.$httpNewsUri = 'http://0.0.0.0:10003/';
// }else{
	Vue.prototype.$httpUri = 'https://shop.qmljd.com/';
	Vue.prototype.$httpUserUri = 'http://easy_api.qmljd.com/';
	Vue.prototype.$httpNewsUri = 'http://api.qmljd.com/';
// }
// if(process.env.NODE_ENV == 'development') {
// 	Vue.prototype.$httpUri = 'http://127.0.0.1:8000/';
// 	Vue.prototype.$VUE_APP_APPSECRET = 'E0DF78D7A5A22562B58C43537A288C99';
// 	Vue.prototype.$VUE_APP_APPKEY = '37DE229506983BC6';
// }else{
// 	Vue.prototype.$httpUri = 'http://api.rpc.wechat.qmljd.com/';
// 	Vue.prototype.$VUE_APP_APPSECRET = 'E0DF78D7A5A22562B58C43537A288C99';
// 	Vue.prototype.$VUE_APP_APPKEY = '37DE229506983BC6';
// }



// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App,
	store
})

// 引入请求封装，将app参数传递到配置中
require('utils/request.js')(app)

app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif